package com.czp.ssm.bean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class CompanyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CompanyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNull() {
            addCriterion("COMPANY_ID is null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNotNull() {
            addCriterion("COMPANY_ID is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdEqualTo(String value) {
            addCriterion("COMPANY_ID =", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotEqualTo(String value) {
            addCriterion("COMPANY_ID <>", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThan(String value) {
            addCriterion("COMPANY_ID >", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThanOrEqualTo(String value) {
            addCriterion("COMPANY_ID >=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThan(String value) {
            addCriterion("COMPANY_ID <", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThanOrEqualTo(String value) {
            addCriterion("COMPANY_ID <=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLike(String value) {
            addCriterion("COMPANY_ID like", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotLike(String value) {
            addCriterion("COMPANY_ID not like", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIn(List<String> values) {
            addCriterion("COMPANY_ID in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotIn(List<String> values) {
            addCriterion("COMPANY_ID not in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdBetween(String value1, String value2) {
            addCriterion("COMPANY_ID between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotBetween(String value1, String value2) {
            addCriterion("COMPANY_ID not between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIsNull() {
            addCriterion("COMPANY_NAME is null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIsNotNull() {
            addCriterion("COMPANY_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEqualTo(String value) {
            addCriterion("COMPANY_NAME =", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotEqualTo(String value) {
            addCriterion("COMPANY_NAME <>", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameGreaterThan(String value) {
            addCriterion("COMPANY_NAME >", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameGreaterThanOrEqualTo(String value) {
            addCriterion("COMPANY_NAME >=", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLessThan(String value) {
            addCriterion("COMPANY_NAME <", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLessThanOrEqualTo(String value) {
            addCriterion("COMPANY_NAME <=", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLike(String value) {
            addCriterion("COMPANY_NAME like", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotLike(String value) {
            addCriterion("COMPANY_NAME not like", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIn(List<String> values) {
            addCriterion("COMPANY_NAME in", values, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotIn(List<String> values) {
            addCriterion("COMPANY_NAME not in", values, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameBetween(String value1, String value2) {
            addCriterion("COMPANY_NAME between", value1, value2, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotBetween(String value1, String value2) {
            addCriterion("COMPANY_NAME not between", value1, value2, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneIsNull() {
            addCriterion("COMPANY_PHONE is null");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneIsNotNull() {
            addCriterion("COMPANY_PHONE is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneEqualTo(String value) {
            addCriterion("COMPANY_PHONE =", value, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneNotEqualTo(String value) {
            addCriterion("COMPANY_PHONE <>", value, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneGreaterThan(String value) {
            addCriterion("COMPANY_PHONE >", value, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("COMPANY_PHONE >=", value, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneLessThan(String value) {
            addCriterion("COMPANY_PHONE <", value, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneLessThanOrEqualTo(String value) {
            addCriterion("COMPANY_PHONE <=", value, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneLike(String value) {
            addCriterion("COMPANY_PHONE like", value, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneNotLike(String value) {
            addCriterion("COMPANY_PHONE not like", value, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneIn(List<String> values) {
            addCriterion("COMPANY_PHONE in", values, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneNotIn(List<String> values) {
            addCriterion("COMPANY_PHONE not in", values, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneBetween(String value1, String value2) {
            addCriterion("COMPANY_PHONE between", value1, value2, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPhoneNotBetween(String value1, String value2) {
            addCriterion("COMPANY_PHONE not between", value1, value2, "companyPhone");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordIsNull() {
            addCriterion("COMPANY_PASSWORD is null");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordIsNotNull() {
            addCriterion("COMPANY_PASSWORD is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordEqualTo(String value) {
            addCriterion("COMPANY_PASSWORD =", value, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordNotEqualTo(String value) {
            addCriterion("COMPANY_PASSWORD <>", value, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordGreaterThan(String value) {
            addCriterion("COMPANY_PASSWORD >", value, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("COMPANY_PASSWORD >=", value, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordLessThan(String value) {
            addCriterion("COMPANY_PASSWORD <", value, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordLessThanOrEqualTo(String value) {
            addCriterion("COMPANY_PASSWORD <=", value, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordLike(String value) {
            addCriterion("COMPANY_PASSWORD like", value, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordNotLike(String value) {
            addCriterion("COMPANY_PASSWORD not like", value, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordIn(List<String> values) {
            addCriterion("COMPANY_PASSWORD in", values, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordNotIn(List<String> values) {
            addCriterion("COMPANY_PASSWORD not in", values, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordBetween(String value1, String value2) {
            addCriterion("COMPANY_PASSWORD between", value1, value2, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyPasswordNotBetween(String value1, String value2) {
            addCriterion("COMPANY_PASSWORD not between", value1, value2, "companyPassword");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyIsNull() {
            addCriterion("COMPANY_MONEY is null");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyIsNotNull() {
            addCriterion("COMPANY_MONEY is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyEqualTo(BigDecimal value) {
            addCriterion("COMPANY_MONEY =", value, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyNotEqualTo(BigDecimal value) {
            addCriterion("COMPANY_MONEY <>", value, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyGreaterThan(BigDecimal value) {
            addCriterion("COMPANY_MONEY >", value, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("COMPANY_MONEY >=", value, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyLessThan(BigDecimal value) {
            addCriterion("COMPANY_MONEY <", value, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("COMPANY_MONEY <=", value, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyIn(List<BigDecimal> values) {
            addCriterion("COMPANY_MONEY in", values, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyNotIn(List<BigDecimal> values) {
            addCriterion("COMPANY_MONEY not in", values, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("COMPANY_MONEY between", value1, value2, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("COMPANY_MONEY not between", value1, value2, "companyMoney");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditIsNull() {
            addCriterion("COMPANY_CREDIT is null");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditIsNotNull() {
            addCriterion("COMPANY_CREDIT is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditEqualTo(String value) {
            addCriterion("COMPANY_CREDIT =", value, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditNotEqualTo(String value) {
            addCriterion("COMPANY_CREDIT <>", value, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditGreaterThan(String value) {
            addCriterion("COMPANY_CREDIT >", value, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditGreaterThanOrEqualTo(String value) {
            addCriterion("COMPANY_CREDIT >=", value, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditLessThan(String value) {
            addCriterion("COMPANY_CREDIT <", value, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditLessThanOrEqualTo(String value) {
            addCriterion("COMPANY_CREDIT <=", value, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditLike(String value) {
            addCriterion("COMPANY_CREDIT like", value, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditNotLike(String value) {
            addCriterion("COMPANY_CREDIT not like", value, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditIn(List<String> values) {
            addCriterion("COMPANY_CREDIT in", values, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditNotIn(List<String> values) {
            addCriterion("COMPANY_CREDIT not in", values, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditBetween(String value1, String value2) {
            addCriterion("COMPANY_CREDIT between", value1, value2, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyCreditNotBetween(String value1, String value2) {
            addCriterion("COMPANY_CREDIT not between", value1, value2, "companyCredit");
            return (Criteria) this;
        }

        public Criteria andCompanyBossIsNull() {
            addCriterion("COMPANY_BOSS is null");
            return (Criteria) this;
        }

        public Criteria andCompanyBossIsNotNull() {
            addCriterion("COMPANY_BOSS is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyBossEqualTo(String value) {
            addCriterion("COMPANY_BOSS =", value, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossNotEqualTo(String value) {
            addCriterion("COMPANY_BOSS <>", value, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossGreaterThan(String value) {
            addCriterion("COMPANY_BOSS >", value, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossGreaterThanOrEqualTo(String value) {
            addCriterion("COMPANY_BOSS >=", value, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossLessThan(String value) {
            addCriterion("COMPANY_BOSS <", value, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossLessThanOrEqualTo(String value) {
            addCriterion("COMPANY_BOSS <=", value, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossLike(String value) {
            addCriterion("COMPANY_BOSS like", value, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossNotLike(String value) {
            addCriterion("COMPANY_BOSS not like", value, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossIn(List<String> values) {
            addCriterion("COMPANY_BOSS in", values, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossNotIn(List<String> values) {
            addCriterion("COMPANY_BOSS not in", values, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossBetween(String value1, String value2) {
            addCriterion("COMPANY_BOSS between", value1, value2, "companyBoss");
            return (Criteria) this;
        }

        public Criteria andCompanyBossNotBetween(String value1, String value2) {
            addCriterion("COMPANY_BOSS not between", value1, value2, "companyBoss");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}